package com.hlg.xboot.model.sys;

import com.hlg.xboot.enums.LogType;
import com.hlg.xboot.model.BaseModel;

import javax.persistence.Column;
import javax.persistence.Entity;

/**
 * <p>Description: 系统日志</p>
 * <p>Copyright: Copyright (c) 2016</p>
 * <p>Company: 中视数讯</p>
 * <p>Site: www.digi-zones.com</p>
 * <p>myblog: http://blog.csdn.net/xyang81</p>
 *
 * @author 杨信
 * @version 1.0
 * @date 2016/10/26
 */
@Entity
public class SysLog extends BaseModel {

	private static final long serialVersionUID = 1L;

	/**
	 * 业务编码
	 */
	@Column(name = "operation_code", nullable = false, length = 150)
	private String operationCode;

	/**
	 * 请求用户
	 */
	@Column(name = "creater", length = 20)
	private String creater;

	/**
	 * 操作系统
	 */
	@Column(name = "OS", length = 20)
	private String os;

	/**
	 * 浏览器
	 */
	@Column(name = "browser", length = 20)
	private String browser;

	/**
	 * 客户端IP
	 */
	@Column(name = "ip", length = 20)
	private String ip;

	/**
	 * 请求参数
	 */
	@Column(name = "request_param", columnDefinition = "text")
	private String requestParam;

	/**
	 * 来源
	 */
	@Column(name = "referer", length = 500)
	private String referer;

	/**
	 * 网卡地址
	 */
	@Column(name = "mac", length = 20)
	private String mac;

	/**
	 * 执行时间
	 */
	@Column(name = "execute_time")
	private Integer executeTime;

	/**
	 * 日志类型
	 * @see LogType
	 */
	@Column(name = "type")
	private String type;

	public String getBrowser() {
		return browser;
	}

	public void setBrowser(String browser) {
		this.browser = browser;
	}

	public String getCreater() {
		return creater;
	}

	public void setCreater(String creater) {
		this.creater = creater;
	}

	public Integer getExecuteTime() {
		return executeTime;
	}

	public void setExecuteTime(Integer executeTime) {
		this.executeTime = executeTime;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getMac() {
		return mac;
	}

	public void setMac(String mac) {
		this.mac = mac;
	}

	public String getOperationCode() {
		return operationCode;
	}

	public void setOperationCode(String operationCode) {
		this.operationCode = operationCode;
	}

	public String getOs() {
		return os;
	}

	public void setOs(String os) {
		this.os = os;
	}

	public String getReferer() {
		return referer;
	}

	public void setReferer(String referer) {
		this.referer = referer;
	}

	public String getRequestParam() {
		return requestParam;
	}

	public void setRequestParam(String requestParam) {
		this.requestParam = requestParam;
	}

	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
}